{% extends "fitbeats/base.html" %}

{% block content %}
    <ul>
        <li class="nav_back"><a href="{% url fitbeats.views.edit_pattern pattern.id %}">Back to Pattern</a></li>
        {% for t in trajectory_types %}
            <li class="nav_add"><a href="add/{{t.0}}/">Add {{t.1}} Trajectory</a></li>
        {% endfor %}
    </ul>
    
    <h2>{{pattern}}</h2>

    <h3>Current Trajectories</h3>
    <ol>
        {% if trajectories %}
            {% for t in trajectories %}
                <li>
                    <a href="{% url fitbeats.views.delete_trajectory pattern.id,t.id %}"><img src="/site_media/icons/delete.png" border="0" title="Delete Trajectory" /></a>
                    <a href="{% url fitbeats.views.edit_trajectory pattern.id,t.id %}">{{t}}</a>
                </li>
            {% endfor %}
        {% else %}
            There are currently no trajectories.  Why not add one using the list above?
        {% endif %}
    </ol>
{% endblock %}
